Enum PortState

java.lang.Object
java.lang.Enum<PortState>
com.cisco.pt.ipc.enums.PortState
All Implemented Interfaces:
Serializable, Comparable<PortState>, Constable

public enum PortState extends Enum<PortState>
An enum for the IPC's PortState values
Author:
packettracerexapps@external.cisco.com
  • Enum Constant Details

    • FAULTY

      public static final PortState FAULTY
    • INIT

      public static final PortState INIT
    • DISABLED

      public static final PortState DISABLED
    • LISTENING

      public static final PortState LISTENING
    • UNCALIBRATED

      public static final PortState UNCALIBRATED
    • PRE_MASTER

      public static final PortState PRE_MASTER
    • SLAVE

      public static final PortState SLAVE
    • MASTER

      public static final PortState MASTER
    • PASSIVE

      public static final PortState PASSIVE
  • Field Details

    • intValue

      protected int intValue
  • Method Details

    • values

      public static PortState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static PortState valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getIntValue

      public int getIntValue()
    • fromIntValue

      public static PortState fromIntValue(int value)
    • fromIntValue

      public static PortState fromIntValue(Integer value)